﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="aboutTitle" ContentPlaceHolderID="TitleContent" runat="server">
    About Us
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <style type="text/css">
        .editor-output
        {
            font: normal 1em/1.1em "Consolas" , "Monaco" , "Bitstream Vera Sans Mono" , "Courier New" , Courier, monospace;
            border: 1px solid #ccc;
            background: #fff;
            display: block;
            padding: 4px 8px 8px;
            z-index: 1000;
        }
    </style>
</asp:Content>
<asp:Content ID="aboutContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        About</h2>
    <p>
        Camel Assets Management System V1.0 beta.
    </p>
    <% Html.Telerik().Editor()
           .Name("editor")
           .Encode(false)
           .HtmlAttributes(new { style = "height:400px" })
           .FileBrowser(t => t.Browse("Browse", "ImageBrowser")
               .Thumbnail("Thumbnail", "ImageBrowser")
               .Upload("Upload", "ImageBrowser")
               .DeleteFile("DeleteFile", "ImageBrowser")
               .DeleteDirectory("DeleteDirectory", "ImageBrowser")
               .CreateDirectory("CreateDirectory", "ImageBrowser"))

               .Render();
    %>
    <p>
        <button type="submit" class="t-button">
            Post to see the generated HTML</button>
    </p>
    <% Html.EndForm(); %>
    <% if (ViewData.ContainsKey("value"))
       { %>
    <h3>
        Editor Value</h3>
    <pre class="prettyprint editor-output"><%= ViewData["value"] %></pre>
    <% } %>
</asp:Content>
